package com.li.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_role")
public class Role {
    /**
     * id
     */
    @TableId(value = "role_id", type = IdType.AUTO)
    private Integer roleId;

    /**
     * 角色名称
     */
    @TableField(value = "role_name")
    private String roleName;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 是否禁用，1：禁用，0：启用
     */
    @TableField(value = "del_flag")
    private Integer delFlag;

    @TableField(exist = false)
    private Integer deptIds[];
    @TableField(exist = false)
    private Integer menuIds[];

    @TableField(exist = false)
    private String menuIdsString;
    @TableField(exist = false)
    private String deptIdsString;

    @DateTimeFormat(pattern="yyyy/MM/dd")
    @TableField(exist = false)
    private Date startTime;
    @DateTimeFormat(pattern="yyyy/MM/dd")
    @TableField(exist = false)
    private Date endTime;

}